package com.abel.demo.services;/**
 * Created by abel.lin on 2017/2/7.
 */

import java.util.List;

/**
 * @author: Abel.lin
 * @date: 2018/7/11 18:28
 * @description:
 * @return:
 */
public interface BaseService<T,C> {

    int countByExample(C example);

    int deleteByPrimaryKey(String id);

    int insert(T record);

    int insertSelective(T record);

    T selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);

    int deleteByExample(C example);

    List<T> selectByExample(C example);

    int updateByExampleSelective(T record, C example);

    int updateByExample(T record, C example);

}
